package com.niit.xlztest.repository;



import com.niit.xlztest.bean.User;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;


public interface UserRepository extends CrudRepository<User, Integer> {

    void deleteById(Integer uid);
    @Query("select u from User u where u.userName = :userName")
    List<User> findUserByName(@Param("userName") String userName);
}
